package cn.org.xuanguang.kepler.hormos.rdb.dml.operator;

import cn.org.xuanguang.kepler.hormos.orm.acl.PolicyCondition;
import cn.org.xuanguang.kepler.hormos.orm.acl.impl.TenantPolicy;

//模拟数据权限策略
public class DaTenantPolicy extends TenantPolicy {

    public String getPolicyName() {
        return "keplerTenant";
    }

    public DaTenantPolicy() {

        addPolicyCondition(
                PolicyCondition.builder()
                        .column("org")
                        .type("in")
                        .value(new Object[]{"1", "2"})
                        .valueType("string")
                        .desc("本机构及以下数据")
                        .code("Org")
                        .build()
        );
    }
}
